﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Entity;
using System.Data;

namespace Business.IManager
{
    public interface IAccountManager
    {
        bool changePwd(Student student, String newPassword);
        Student logIn(Student student);
        String checkStuId(String idCardNum);
        bool checkStuPassword(Student student);
        bool openEmailService(Student stu, string txtMail);
        SysAdmin adminLogin(SysAdmin admin);
        Student getStudent(String stuId);
        DataTable getStudents();
        bool addNewStudent(Student student);
        //权限管理
        bool getAuthority(int roleId, String authName);
        DataSet getAuthorityDS();
        bool deletRole(int roleId);
        List<bool> getRoleInfor(string roleName);
        bool updateRoleInfor(List<bool> authoritySet, String roleName);
        bool genneRoleInfor(List<bool> authoritys, String roleName);

        bool addOperator(Operator oper);
        DataSet getOperatorDs();
        bool deletOperator(int id);
        Operator selectOperatorInfor(int operatorId);
        bool updataOperator(int operatorId, Operator oper);
    }




}
